package com.yg.item.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 剧评表
 * </p>
 *
 * @author 魏成龙
 * @since 2020-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yg_item_comment")
public class ItemComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 剧目Id
     */
    @TableField("itemId")
    private Long itemId;

    /**
     * 评论用户ID
     */
    @TableField("userId")
    private Long userId;

    /**
     * 评分(1-10)
     */
    private Integer score;

    /**
     * 剧评
     */
    private String content;

    /**
     * 更新时间
     */
    @TableField("createdTime")
    private LocalDateTime createdTime;

    /**
     * 修改时间
     */
    @TableField("updatedTime")
    private LocalDateTime updatedTime;


}
